package com.wzh.dao;

import com.wzh.pojo.Po.Notes;
import com.wzh.pojo.Po.Treemenu;
import com.wzh.pojo.Po.UserZp;
import com.wzh.pojo.Po.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface RouterDao {
	@Select("select * from treemenu where status !=1")
	List<Treemenu> find();


	@Insert("insert into treemenu (name,path,t_class,label) value (#{name},#{path},#{t_class},#{label})")
	Integer add(Treemenu router);


	@Update("update treemenu set status=1 where id=#{id}")
	Integer del(Treemenu router);


}
